package com.wcsy.myblog.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wcsy.myblog.entity.Announcement;
import org.apache.ibatis.annotations.Param;

public interface AnnouncementMapper extends BaseMapper<Announcement> {
    /**
     * 添加公告
     */
    void insertAnnouncement(@Param("announcement") Announcement announcement);
    /**
     * 修改公告
     */
    void updateAnnouncement(@Param("announcement") Announcement announcement);
    /**
     * 查询发布的所有公告
     */

}
